import 'dart:io';

import 'package:my_flutter_core/constants/operation_system.dart';

/// Provides information about the current platform.
abstract class PlatformInfo {
  static final String _os = Platform.operatingSystem.toLowerCase();

  static bool get isAndroid => _os == OperationSystem.android;
  static bool get isIOS => _os == OperationSystem.ios;
  static bool get isLinux => _os == OperationSystem.linux;
  static bool get isMacOS => _os == OperationSystem.macos;
  static bool get isWindows => _os == OperationSystem.windows;
}
